package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DzbqCpuinfoMapper;
import com.ruoyi.system.domain.DzbqCpuinfo;
import com.ruoyi.system.service.IDzbqCpuinfoService;

/**
 * CPU型号Service业务层处理
 * 
 * @author tianxingxia
 * @date 2025-01-31
 */
@Service
public class DzbqCpuinfoServiceImpl implements IDzbqCpuinfoService 
{
    @Autowired
    private DzbqCpuinfoMapper dzbqCpuinfoMapper;

    /**
     * 查询CPU型号
     * 
     * @param cpuId CPU型号主键
     * @return CPU型号
     */
    @Override
    public DzbqCpuinfo selectDzbqCpuinfoByCpuId(Integer cpuId)
    {
        return dzbqCpuinfoMapper.selectDzbqCpuinfoByCpuId(cpuId);
    }

    /**
     * 查询CPU型号列表
     * 
     * @param dzbqCpuinfo CPU型号
     * @return CPU型号
     */
    @Override
    public List<DzbqCpuinfo> selectDzbqCpuinfoList(DzbqCpuinfo dzbqCpuinfo)
    {
        return dzbqCpuinfoMapper.selectDzbqCpuinfoList(dzbqCpuinfo);
    }

    /**
     * 新增CPU型号
     * 
     * @param dzbqCpuinfo CPU型号
     * @return 结果
     */
    @Override
    public int insertDzbqCpuinfo(DzbqCpuinfo dzbqCpuinfo)
    {
        return dzbqCpuinfoMapper.insertDzbqCpuinfo(dzbqCpuinfo);
    }

    /**
     * 修改CPU型号
     * 
     * @param dzbqCpuinfo CPU型号
     * @return 结果
     */
    @Override
    public int updateDzbqCpuinfo(DzbqCpuinfo dzbqCpuinfo)
    {
        return dzbqCpuinfoMapper.updateDzbqCpuinfo(dzbqCpuinfo);
    }

    /**
     * 批量删除CPU型号
     * 
     * @param cpuIds 需要删除的CPU型号主键
     * @return 结果
     */
    @Override
    public int deleteDzbqCpuinfoByCpuIds(Integer[] cpuIds)
    {
        return dzbqCpuinfoMapper.deleteDzbqCpuinfoByCpuIds(cpuIds);
    }

    /**
     * 删除CPU型号信息
     * 
     * @param cpuId CPU型号主键
     * @return 结果
     */
    @Override
    public int deleteDzbqCpuinfoByCpuId(Integer cpuId)
    {
        return dzbqCpuinfoMapper.deleteDzbqCpuinfoByCpuId(cpuId);
    }
}
